<div id="content_left">
<h2 style="font-size: 25px;" class="orange">
DANH SÁCH TIN TÌM ĐƯỢC</h2>

<table width="97%" cellspacing="0" cellpadding="0" border="0" class="tableList">
                          <tr>
                            <td align="left"><span class="title_list">Tiêu đề</span></td>
                            <td width="70" align="center"><span class="title_list">Nơi đăng</span></td>
                            <td width="70" align="center"><span class="title_list">Ngày</span></td>
                          </tr>
                        <?php
		$i = 0;
		foreach ($posts as $post):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		//var_dump($posts);
	?> 
						<tr height="25" class="bg2">						
							<td class="titleListDetail">
								<?php echo $this->Html->link($post['Post']['tieude'], array('controller' => 'posts', 'action' => 'view', $post['Post']['id'])); ?>&nbsp;
     							      	
                            </td>
							<td align="center"><?php echo $post['Post']['tinhthanh']; ?>&nbsp;</td>
							<td align="center"><?php echo $post['Post']['created']; ?>&nbsp;</td>	
						</tr>	
<?php endforeach;
	?>
						 
						</table>
</div>